<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/18
  Time: 10:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="content-type" content="text/html" ;charset="gb2312">
    <title>CoolMeeting会议管理系统</title>
    <link rel="stylesheet" href="styles/common.css" />
    <style type="text/css">

    </style>
</head>

<body>

<div class="page-content">
    <div class="content-nav">
        会议预定 > 搜索会议
    </div>
    <form action="${pageContext.request.contextPath }/selectMeetingsServlet "method="post">
        <fieldset>
            <legend>搜索会议</legend>
            <table class="formtable">
                <tr>
                    <td>会议名称：</td>
                    <td>
                        <input type="text" name="MeetingName" id="meetingname" maxlength="20" />
                    </td>
                    <td>会议室名称：</td>
                    <td>
                        <input type="text" name="RoomName" id="roomname" maxlength="20" />
                    </td>
                    <td>预定者姓名：</td>
                    <td>
                        <input type="text" name="EmployeeName" id="reservername" maxlength="20" />
                    </td>
                </tr>
                <tr>
                    <td>预定日期：</td>
                    <td colspan="5">
                        从&nbsp;<input type="date" name="dateComm" id="reservefromdate" placeholder="例如：2013-10-20" /> 到&nbsp;
                        <input type="date" name="dateEnd" id="reservetodate" placeholder="例如：2013-10-22" />
                    </td>
                </tr>
                <tr>
                    <td>会议日期：</td>
                    <td colspan="5">
                        从&nbsp;<input type="date" name="meetingComm" id="meetingfromdate" placeholder="例如：2013-10-20" /> 到&nbsp;
                        <input type="date" name="metingEnd" id="meetingtodate" placeholder="例如：2013-10-22" />
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="command">
                        <input type="submit" class="clickbutton" value="查询" />
                        <input type="reset" class="clickbutton" value="重置" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
    <div>
        <h3 style="text-align:center;color:black">查询结果</h3>
        <div class="pager-header">
            <div class="header-info">
                共<span class="info-number">54</span>条结果， 分成
                <span class="info-number">6</span>页显示， 当前第
                <span class="info-number">1</span>页
            </div>
            <div class="header-nav">
                <input type="button" class="clickbutton" value="首页" />
                <input type="button" class="clickbutton" value="上页" />
                <input type="button" class="clickbutton" value="下页" />
                <input type="button" class="clickbutton" value="末页" /> 跳到第
                <input type="text" id="pagenum" class="nav-number" />页
                <input type="button" class="clickbutton" value="跳转" />
            </div>
        </div>
    </div>
    <table class="listtable">
        <tr class="listheader">
            <th>会议名称</th>
            <th>会议室名称</th>
            <th>会议开始时间</th>
            <th>会议结束时间</th>
            <th>会议预定时间</th>
            <th>预定者</th>
            <th>操作</th>
        </tr>
    <c:forEach var="meeting" items='${requestScope.list}'>
    <tr>
        <!-- 会议名称 -->
        <td>${meeting.meetingname}</td>
        <!-- 会议室名称 -->
        <td>${meeting.meetingRoom.roomname}</td>
        <!-- 会议开始时间 -->
        <td>${meeting.begintime }</td>
        <!--会议结束时间 -->
        <td>${meeting.endtime }</td>
        <!--会议预定时间	-->
        <td>${meeting.reservationtime }</td>
        <!--预定者	-->
        <td>${meeting.employee.employeename }</td>
        <td>
            <!-- 操作 --> <a class="clickbutton" href="SelectByroomidServlet?roomid=${meeting.meetingid}">查看详情</a>
        </td>
    </tr>
</c:forEach>
    </table>
</div>

</body>

</html>
